{% load wiki_tags i18n sekizai_tags %}
{% include "wiki/includes/editormedia.html" %}

{% wiki_form form %}
{% addtoblock "css" %}
    <link rel="stylesheet" href="/static/plugins/editor/css/editormd.min.css">
{% endaddtoblock %}
{% addtoblock "js" %}
    <script language="javascript">
        $(document).ready(function () {
            $("#id_revision").val('{{ article.current_revision.id }}');
        });

    </script>
    <script src="/static/plugins/editor/editormd.min.js"></script>
    <script>
        $("textarea.editormd").parent().attr({'id': 'editor'});
        editormd("editor", {
            width: "100%",
            height: "600px",
            codeFold: true,
            emoji: false,
            sequenceDiagram: true,
            taskList: true,
            flowChart: true,
            path: "/static/plugins/editor/lib/"
        });
    </script>
{% endaddtoblock %}
